// TheCorruptRookWinBoardApp.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include "../TheCorruptRook/Engine.h"

#include "WinBoardReceiver.h"
#include "WinBoardSender.h"

using namespace Rorn::Chess;
using namespace Rorn::Chess::TheCorruptRook;

int _tmain(int argc, _TCHAR* argv[])
{
	WinBoardSender winBoardSender;
	Engine corruptRookEngine(&winBoardSender);
	WinBoardReceiver winBoardReceiver(&winBoardSender, &corruptRookEngine);

	while(!winBoardReceiver.IsTimeToQuit())
	{
		winBoardReceiver.Update();
		corruptRookEngine.Update();
	}

	return 0;
}
